package com.sf.fy.uav.common.response.operational;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ta136817
 */
@Data
public class CommodityRes {
    @ApiModelProperty("商品主键")
    private String id;

    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("所属商家id")
    private String businessId;

    @ApiModelProperty("所属商家名称")
    private String businessName;

    @ApiModelProperty("商品图片地址串")
    private String images;

    @ApiModelProperty("商品简介")
    private String introduction;

    @ApiModelProperty("售价")
    private BigDecimal price;

    @ApiModelProperty("供货价")
    private BigDecimal supplyPrice;

    @ApiModelProperty("库存数量")
    private Integer amount;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty("状态 ")
    private Integer status;

    @ApiModelProperty("状态名称")
    private String statusName;

    @ApiModelProperty("处理人")
    private String processedBy;
}
